package com.zl.customer.pojo;/**
 * @author suke
 * @create 2021-07-07 10:32
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * TODO
 * @ClassName: Customer
 * @author: suke
 * @since: 2021/7/7 10:32
 */
@Data
public class Customer {
    private Integer cid;
    private String cname;
    private String sex;
    //@DateTimeFormat(pattern = "yyyy-MM-dd")   //Spring提供的注解: 把字符串转换Date
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")     //jackson 提供的注解:  把Date转换字符串
    private Date brithday;
    private String cellphone;
    private String email;
    private String description;
    private String photo;


}
